package com.lcc.generate;

/**
 * @author lcc
 * @date 2025/1/13 13:48
 */
public class TableConfig {

    public String primaryKey;
    public String sequence;
    private String tableName;
    public String className;
    public String tableComment;
    public String generateVue3;
    public String requestMapping;


    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }

    public String getSequence() {
        return sequence;
    }

    public void setSequence(String sequence) {
        this.sequence = sequence;
    }

    public String getTableName(boolean ifNoPrefix) {
        if (ifNoPrefix) {
            return tableName.replaceAll("^[a-zA-Z]+_", "");
        }
        return tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableComment() {
        return tableComment;
    }

    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }

    public String getGenerateVue3() {
        return generateVue3;
    }

    public void setGenerateVue3(String generateVue3) {
        this.generateVue3 = generateVue3;
    }

    public String getRequestMapping() {
        return requestMapping;
    }

    public void setRequestMapping(String requestMapping) {
        this.requestMapping = requestMapping;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}
